<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo ($title); ?>-湖州华储工业设备有限公司</title>
<meta name="keywords" content="<?php echo ($keywords); ?>" />
<meta name="description" content="<?php echo ($description); ?>" />
<script type="text/javascript" src="/smq/hzhuachu/Public/Home/default/js/jquery-1.7.2.min.js" ></script>
<link href="/smq/hzhuachu/Public/Home/default/css/css.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color:#f3f3f3;">
<!--top -->
										<!--新闻中心页面-->
<!--头部-->
<div style="width:1260px;margin:0 auto;">
<div style="height: 120px;" >
	<!--[if IE 6]>
<script src="/smq/hzhuachu/Public/Home/default/js/DD_belatedPNG_0.0.8a-min.js" language="javascript" type="text/javascript"></script>
<script>
  DD_belatedPNG.fix('#top_logo');   /* string argument can be any CSS selector */
</script>
<![endif]-->
<script type="text/javascript">
$(function(){
	var $chkurl = "<?php echo U('Public/loginChk');?>";
	$.get($chkurl,function(data){
		//alert(data);
		if (data.status == 1) {
			$('#top_login_ok').show();
			$('#top_login_no').hide();
			//$('#top_login_ok').find('span');
			$('#top_login_ok>span').html('欢迎您，'+data.nickname);
		}else {
			$('#top_login_ok').hide();
			$('#top_login_no').show();
		}
	},'json');
});
</script>
<!--<div class="warp" id="herd">-->
	<!--<div id="top_member" style="display:none;">-->
		<!--&lt;!&ndash;<a href="<?php echo U(MODULE_NAME.'/Product/basket');?>">购物车</a>&ndash;&gt;-->
		<!--<div id="top_login_no">-->
		<!--<a href="<?php echo U(MODULE_NAME.'/Public/register');?>">会员注册</a>-->
		<!--<a href="<?php echo U(MODULE_NAME.'/Public/login');?>">会员登录</a>-->
		<!--<span>欢迎您，游客！您可以选择sdsds</span>-->
		<!--</div>-->
		<!--<div id="top_login_ok" style="display:none;">-->
		<!--<a href="<?php echo U(MODULE_NAME.'/Member/index');?>">会员中心</a>-->
		<!--<a href="<?php echo U(MODULE_NAME.'/Public/logout');?>">安全退出</a>-->
		<!--<span>欢迎您，fwef </span>-->
		<!--</div>-->

	<!--</div>-->
	<!--<div id="top_logo"><a href="http://www.hzhuachu.com/"></a></div>-->
<!--</div>-->
<div id="herds">
<table id="top">
	<tr >
		<td id="logo"><img src="./Public/Home/default/images/logo2.png"></td>
		<td id="company"><img src="./Public/Home/default/images/3.jpg" ></td>
		<th><div id="navigation" style="margin-top:50px;">
			<ul>
				<li id="column" style="width:57px;height:3px;float: left;padding:12px;line-height:4px;margin-right:5px;font-size: 14px;
				background:url(./Public/Home/default/images/6.png);">
					<a href="http://www.hzhuachu.com/" >首 页</a>
				</li>
				</li>
				<?php
 $_typeid = 0; if($_typeid == -1) $_typeid = I('cid', 0, 'intval'); $_navlist = get_category(1); if($_typeid == 0) { $_navlist = Common\Lib\Category::toLayer($_navlist); }else { $_navlist = Common\Lib\Category::toLayer($_navlist, 'child', $_typeid); } foreach($_navlist as $autoindex => $navlist): $navlist['url'] = get_url($navlist); ?><li  id="more" style="float: left;width:57px;height:3px;padding:12px;line-height:4px;margin-right:5px;font-size: 14px;
					background:url(./Public/Home/default/images/6.png)">
						<a href='<?php echo ($navlist["url"]); ?>'><?php echo ($navlist["name"]); ?></a>
						<div class="clear"></div>
					</li><?php endforeach;?>
			</ul>
		</div>
		</th>
	</tr>
</table>
</div>
	<div class="clear"></div>
</div>

<!--图片-->
<img src="./Public/Home/default/images/4.jpg" width="100%">
<div style="text-align:center; vertical-align:middle;background-color:#f3f3f3;">
	<?php
 $_id = intval(2); if (!empty($_id)) { if (1) { echo '<script type="text/javascript" src="'.U('Abc/shows', array('id' => $_id, 'flag' => 1)).'"></script>'; }else { echo get_abc($_id, 1); } } ?>
</div>



<div style="margin-left:120px;margin-top:20px;float: left">
	<img src="./Public/Home/default/images/18.png" >
</div>
<div style="float:left;">
	<p style="margin-top:20px;margin-left:35px;margin-bottom:20px;">
		<img src="./Public/Home/default/images/17.png" style="width:12px;" >
		<b style="color:#000000;font-size:16px;">最新新闻</b>
	</p>
	<ul>
	<?php
 $_typeid = $cid; $_keyword = ""; if($_typeid == -1) $_typeid = I('cid', 0, 'intval'); if ($_typeid>0 || substr($_typeid,0,1) == '$') { $_selfcate = Common\Lib\Category::getSelf(get_category(), $_typeid); $_tablename = strtolower($_selfcate['tablename']); $ids = Common\Lib\Category::getChildsId(get_category(), $_typeid, true); $where = array($_tablename.'.status' => 0, $_tablename .'.cid'=> array('IN',$ids)); }else { $_tablename = 'article'; $where = array($_tablename.'.status' => 0); } if ($_keyword != '') { $where[$_tablename.'.title'] = array('like','%'.$_keyword.'%'); } if (0 > 0) { $where['_string'] = $_tablename.'.flag & 0 = 0 '; } if (!empty($_tablename) && $_tablename != 'page') { if (50 > 0) { $count = D2('ArcView',"$_tablename")->where($where)->count(); $ename = I('e', '', 'htmlspecialchars,trim'); if (!empty($ename) && C('URL_ROUTER_ON') == true) { $param['p'] = I('p', 1, 'intval'); $param_action = '/'.$ename; }else { $param = array(); $param_action = ''; } $thisPage = new \Common\Lib\Page($count, 50, $param, $param_action); $thisPage->rollPage = 4; $thisPage->setConfig('theme'," %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%"); $limit = $thisPage->firstRow. ',' .$thisPage->listRows; $page = $thisPage->show(); }else { $limit = "10"; } $_list = D2('ArcView',"$_tablename")->nofield('content,pictureurls')->where($where)->order("id DESC")->limit($limit)->select(); if (empty($_list)) { $_list = array(); } }else { $_list = array(); } foreach($_list as $autoindex => $list): $_jumpflag = ($list['flag'] & B_JUMP) == B_JUMP? true : false; $list['url'] = get_content_url($list['id'], $list['cid'], $list['ename'], $_jumpflag, $list['jumpurl']); if(0) $list['title'] = str2sub($list['title'], 0, 0); if(0) $list['description'] = str2sub($list['description'], 0, 0); ?><li>
		<div style="padding:4px;border-bottom:2px dashed #999;width:750px;">
			<img src="./Public/Home/default/images/20.png" style="width:8px;" >
			<a href="<?php echo ($list["url"]); ?>"><span style="color:#000000;"><?php echo ($list["title"]); ?></span></a>
		   <span style="color: #333333;float:right;font-size:14px;">【<?php echo (date('Y-m-d',$list["publishtime"])); ?>】</span>
		</div>
	</li><?php endforeach;?>
	</ul>
	</div>


	<!--分页 -->
<div class="clear"></div>
	<div style="height:30px;text-align:center;padding-left:9px;color:#000000;word-spacing:6px;letter-spacing:8px;
	line-height:25px;">
		<?php echo ($page); ?>
	</div>
	

<div class=" clear"></div>

<div style="margin-top:120px;">
<div class="warp1 mt" id="bottom" style="font-size:14px;">
	<a href="http://www.hzhuachu.com/">湖州华储工业设备有限公司</a>版权所有
	<br />
	联系地址：湖州市吴兴区金环路158号  电话：0572-2285809<br />
	Copyright © 2016-2016 cmgd<a href="http://www.hzhus.com" target="_blank">Power by 茶马古道 	</a> 浙ICP备16017226号-1
</div>
<div style="display:none;"><script src="http://s95.cnzz.com/stat.php?id=1259313908&web_id=1259313908" language="JavaScript"></script></div>
<?php
 echo '<script type="text/javascript" src="'.U(MODULE_NAME. '/Public/online').'"></script>'; ?>


</div>
</body>
</html>